package com.frank.oj.service.admin.contest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.oj.common.result.CommonResult;
import com.frank.oj.model.dto.AnnouncementDTO;
import com.frank.oj.model.vo.AnnouncementVO;

/**
 * @author frank
 * @Date 2024/4/7
 */
public interface AdminContestAnnouncementService {
    CommonResult<IPage<AnnouncementVO>> getAnnouncementList(Integer limit, Integer currentPage, Long cid);

    CommonResult<Void> deleteAnnouncement(Long aid);

    CommonResult<Void> addAnnouncement(AnnouncementDTO announcementDto);

    CommonResult<Void> updateAnnouncement(AnnouncementDTO announcementDto);
}
